package com.cr.front.store.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cr.front.store.mapper.StoreMapper;
import com.cr.front.store.pojo.entity.Store;
import com.cr.front.store.pojo.query.StoreQuery;
import com.cr.front.store.service.StoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class StoreServiceImpl implements StoreService {
    @Autowired
    private StoreMapper storeMapper;
    @Override
    public List<Store> list(StoreQuery storeQuery) {

        return storeMapper.selectListWithCityId(storeQuery.getCityId());

    }
}
